package com.zhuoshi.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhuoshi.bean.ReceptionQuery;
import com.zhuoshi.bean.WdReceptionRecord;
import com.zhuoshi.mapper.WdReceptionRecordMapper;
import com.zhuoshi.service.WdReceptionRecordService;

@Service
public class WdReceptionRecordServiceImpl implements WdReceptionRecordService {

	@Autowired
	private WdReceptionRecordMapper mapper;

	// 删除
	@Override
	public int deleteByPrimaryKey(String receptionRecordId) {
		return mapper.deleteByPrimaryKey(receptionRecordId);
	}

	// 添加
	@Override
	public int insert(WdReceptionRecord record) {
		return mapper.insert(record);
	}

	// 动态添加
	@Override
	public int insertSelective(WdReceptionRecord record) {
		return mapper.insertSelective(record);
	}

	// 根据id查询,用于修改
	@Override
	public WdReceptionRecord selectByPrimaryKey(String receptionRecordId) {
		return mapper.selectByPrimaryKey(receptionRecordId);
	}

	// 动态修改
	@Override
	public int updateByPrimaryKeySelective(WdReceptionRecord record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	// 修改
	@Override
	public int updateByPrimaryKey(WdReceptionRecord record) {
		return mapper.updateByPrimaryKey(record);
	}

	// 查询所有，有条件查询
	@Override
	public List<WdReceptionRecord> getlist(ReceptionQuery bean) {
		return mapper.getlist(bean);
	}

}
